import javax.swing.JOptionPane;

public class HelloWorldDialogueBox
{
	public static void main(String[] args)
	{
		JOptionPane.showMessageDialog(null, "Hello World");
		
		String name = JOptionPane.showInputDialog("What is your name?");
		JOptionPane.showMessageDialog(null, "Hello " + name + "!");
		System.out.println(name);
	}
	
}
